<foreach name="accountlist" item="account">
    <tr>
        <td>{$account.agent_name}</td>
        <td><a class="amt">{$account.amount}</a></td>
        <td>{$payment[$account['pay_type']]}</td>
        <td>{$account['record_time']|date='Y-m-d',###}</td>
        <td>{$account['record_ip']}</td>
        <td>{$account['record_remark']}</td>
    </tr>
</foreach>
<tr><td colspan="6">{$page}</td></tr>

<script type="text/javascript">
    $(document).ready(function(){
        $(".pagination a").click(function(){
            cur_page = $(this).data('p');
            ajax_get_table(cur_page);
        });
    });
</script>